home *** CD-ROM | disk | FTP | other *** search
/ This Disc Bytes! / Power Computing - The Disc 2 - This Disc Bytes.ISO / mac / CodeWarrior 7 Lite for 68K / MacOS Support / Headers / Universal Headers / Scrap.h < prev    next >
Text File  |  1995-07-06  |  2KB  |  78 lines

  1. /*
  2.      File:        Scrap.h
  3.  
  4.      Contains:    Scrap Manager Interfaces.
  5.  
  6.      Version:    Technology:    System 7.5
  7.                  Package:    Universal Interfaces 2.1 in “MPW Latest” on ETO #18
  8.  
  9.      Copyright:    © 1984-1995 by Apple Computer, Inc.
  10.                  All rights reserved.
  11.  
  12.      Bugs?:        If you find a problem with this file, use the Apple Bug Reporter
  13.                  stack.  Include the file and version information (from above)
  14.                  in the problem description and send to:
  15.                      Internet:    apple.bugs@applelink.apple.com
  16.                      AppleLink:    APPLE.BUGS
  17.  
  18. */
  19.  
  20. #ifndef __SCRAP__
  21. #define __SCRAP__
  22.  
  23.  
  24. #ifndef __TYPES__
  25. #include <Types.h>
  26. #endif
  27. /*    #include <ConditionalMacros.h>                                */
  28.  
  29. #ifdef __cplusplus
  30. extern "C" {
  31. #endif
  32.  
  33. #if PRAGMA_ALIGN_SUPPORTED
  34. #pragma options align=mac68k
  35. #endif
  36.  
  37. #if PRAGMA_IMPORT_SUPPORTED
  38. #pragma import on
  39. #endif
  40.  
  41. struct ScrapStuff {
  42.     long                            scrapSize;
  43.     Handle                            scrapHandle;
  44.     short                            scrapCount;
  45.     short                            scrapState;
  46.     StringPtr                        scrapName;
  47. };
  48. typedef struct ScrapStuff ScrapStuff;
  49.  
  50. typedef ScrapStuff *PScrapStuff, *ScrapStuffPtr;
  51.  
  52. extern pascal ScrapStuffPtr InfoScrap(void)
  53.  ONEWORDINLINE(0xA9F9);
  54. extern pascal long UnloadScrap(void)
  55.  ONEWORDINLINE(0xA9FA);
  56. extern pascal long LoadScrap(void)
  57.  ONEWORDINLINE(0xA9FB);
  58. extern pascal long GetScrap(Handle hDest, ResType theType, long *offset)
  59.  ONEWORDINLINE(0xA9FD);
  60. extern pascal long ZeroScrap(void)
  61.  ONEWORDINLINE(0xA9FC);
  62. extern pascal long PutScrap(long length, ResType theType, void *source)
  63.  ONEWORDINLINE(0xA9FE);
  64.  
  65. #if PRAGMA_IMPORT_SUPPORTED
  66. #pragma import off
  67. #endif
  68.  
  69. #if PRAGMA_ALIGN_SUPPORTED
  70. #pragma options align=reset
  71. #endif
  72.  
  73. #ifdef __cplusplus
  74. }
  75. #endif
  76.  
  77. #endif /* __SCRAP__ */
  78.